<?php include(TPL_PATH . '/inc_header.php'); ?>
<?php include(TPL_PATH . '/inc_top.php'); ?>
<script type="text/javascript" src="<?php p(JS_URL) ?>/jquery.KinSlideshow.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    <?php if ($arrSlide && is_array($arrSlide)) { ?>
    $("#id_slide").KinSlideshow({
        mouseEvent:"mouseover",
        btn:{
            btn_bgColor:"#FFFFFF",
            btn_bgHoverColor:"#069",
            btn_fontColor:"#000000",
            btn_fontHoverColor:"#FFFFFF",
            btn_borderColor:"#cccccc",
            btn_borderHoverColor:"#1188c0",
            btn_borderWidth:1
        }
    });
    <?php } ?>
    $('.column .text_pic .pic').each(function() {
        var id_cat = $(this).attr('id').replace('id_pic', '');
        var li = $('#id_text' + id_cat + ' ul li').eq(0);
        $('a', $(this)).attr('href', li.attr('url'));
        $('a img', $(this)).attr('src', li.attr('ext'));
    });
    $('.column .text_pic .text_list ul li').each(function() {
        $(this).mouseover(function() {
            var _this = $(this);
            _this.addClass('important').siblings().removeClass('important');
            var div_pic = $('#id_pic' + _this.attr('cat'));
            $('a', div_pic).attr('href', _this.attr('url'));
            $('a img', div_pic).attr('src', _this.attr('ext'));
        });
    });
});
</script>

<style type="text/css">
#id_slide{overflow:hidden; width:660px; height:200px; visibility:hidden;}
</style>
<div class="main_left">

    <?php if ($arrSlide && is_array($arrSlide)) { ?>
    <div id="id_slide" class="left_slide">
        <?php foreach ($arrSlide as $arrTemp) { ?>
        <a href="<?php p($arrTemp['link']) ?>" target="_blank"><img width="660" height="200" src="<?php p(HTTP_URL . $arrTemp['path']) ?>" alt="<?php p($arrTemp['title']) ?>" /></a>
        <?php } ?>
    </div>
    <?php } ?>
    
    <?php foreach ($arrData as $strTemp => $arrTemp) { if (count($arrTemp) > 0) { ?>
    <div class="column">
        <div class="column-title">
            <h3><span><a href="<?php p(HTTP_URL . '/' . $arrCatAll[$strTemp]['name_en'] . '.html') ?>">更多...</a></span><?php p($arrCatAll[$strTemp]['name']) ?></h3>
        </div>
        
        <div class="text_pic">
            <div class="pic" id="<?php p('id_pic' . $strTemp) ?>"><a href="#"><img src="<?php p(HTTP_URL) ?>/uploads/no_image.jpg" width="200" height="200" alt="" title="点击查看详情" /></a></div>
            <div class="text_list" id="<?php p('id_text' . $strTemp) ?>">
                <ul>
                    <?php
                    $intTemp = 0;
                    $strCatRoot = $strTemp;
                    foreach ($arrTemp as $arr) {
                        $intTemp ++;
                        $strTemp = HTTP_URL . '/' . $arrCatAll['_' . $arr['cat_id']]['name_en'] . '-' . $arr['id'] . '.html';
                    ?>
                    <li<?php $intTemp == 1 && p(' class="important"') ?> cat="<?php p($strCatRoot) ?>" ext="<?php p(HTTP_URL . $arr['thumb']) ?>" url="<?php p($strTemp) ?>">
                        <em></em>
                        <span><a href="<?php p(HTTP_URL . '/' . $arrCatAll['_' . $arr['cat_id']]['name_en'] . '.html') ?>">@<?php p($arrCatAll['_' . $arr['cat_id']]['name']) ?></a></span>
                        <a target="_blank" href="<?php p($strTemp) ?>"><?php p(Helper::strCut($arr['title'], 69)) ?></a>
                    </li>
                    <?php } ?>
                </ul>
            </div>
        </div>
    </div>
    <?php }} ?>
    
</div>
  
<!--main_right-->
<div class="main_right">
    <?php if ($arrHot && count($arrHot) > 0) { ?>
    <div class="hot_news">
        <h3>近期热门</h3>
        <ul>
            <?php $intTemp = 0; foreach ($arrHot as $arrTemp) { $intTemp ++; ?>
            <li><a target="_blank" href="<?php p(HTTP_URL . '/' . $arrCatAll['_' . $arrTemp['cat_id']]['name_en'] . '-' . $arrTemp['id'] . '.html') ?>"><span<?php $intTemp <= 3 && p(' class="top3"') ?>><?php p($intTemp) ?></span><?php p($arrTemp['title']) ?></a></li>
            <?php } ?>
        </ul>
    </div>
    <?php } ?>
</div>
    
<?php include(TPL_PATH . '/inc_bottom.php'); ?>
<?php include(TPL_PATH . '/inc_footer.php'); ?>